﻿<script type="text/javascript">    
        $(document).ready(function () {
        if (document.getElementById("hotNum_sg") == null) {
            hotCount = 0;
            /**此处放图片路径*/
        }
        else {
            hotCount = $("#hotNum_sg").html();
        }

        $("#hotCount").html(hotCount);

        var clientH; $(".hotfilmpic").hover(function () {
            var hotid = $(this).attr("id");
            hotid = hotid.substring(3, hotid.length);
            $("#hidehotfilming" + hotid).show();
            var div_y;
            if (typeof window.pageYOffset != 'undefined') {
                div_y = window.pageYOffset;
            }
            else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
                div_y = document.documentElement.scrollTop;
            }
            else if (typeof document.body != 'undefined') {
                div_y = document.body.scrollTop;
            }
            clientH = $(window).height();
            var y_height = $("#hidehotfilming" + hotid).offset().top;
            var h_div = clientH - y_height;
            var _windows = $("#hidehotfilming" + hotid).height();
            var sldiv = _windows - h_div;
            var juli = sldiv - div_y;
            if (juli > 0) {
                setTimeout(function () {
                    $("html,body").animate({ scrollTop: sldiv }, "slow");
                }, 400)
            }
            $("#showhotfilming" + hotid).hide();
        }, function () {
            var hotid = $(this).attr("id"); hotid = hotid.substring(3, hotid.length);
            $("#hidehotfilming" + hotid).hide();
            $("#showhotfilming" + hotid).show();
        });
    });
</script>
<div>
    #foreach($content in $pageSplit_BLL.GetTable("select top 8 * from movie where ReleaseDate<=GETDATE() order by ReleaseDate desc").Rows)
    
    <dl style="z-index: ${velocityCount};">
        <dt>
            <div class="hotfilmpic" id="hfg${velocityCount}">
                <div id="showhotfilming8">
                    <a href="/wangp/25/${content.movieId}.html" target="_blank" title="">
                        <img alt="${content.movieName}" class="ele-img filmimg" src="${content.MovieLogo}" /><em
                            class="hot"></em></a></div>
                <div class="xxfilm" id="hidehotfilming${velocityCount}">
                    <div class="xxfilmL fl">
                        <a href="/wangp/25/${content.movieId}.html" target="_blank" title="">
                            <img alt="${content.movieName}" class="ele-img filmimg" src="${content.MovieLogo}" /><em></em></a><a
                                href="/wangp/25/12699.html" target="_blank" class="cinemaseat ml12"><img title="在线购票"
                                    alt="在线购票" src="/images/btn_seat.jpg" /></a></div>
                    <div class="xxfilmR fr">
                        <h4>
                            <a href="/wangp/25/${content.movieId}.html" target="_blank" title="${content.movieName}"><em>片名：</em>${content.movieName}</a></h4>
                        <p class="xxfilmRA">
                            <a href="/wangp/25/${content.movieId}.html?showy=2" target="_blank" title="">电影介绍</a> | <a href="/wangp/25/${content.movieId}.html?showy=1"
                                target="_blank" title="">评论<em></em></a> | <a href="/wangp/25/${content.movieId}.html?showy=4"
                                    target="_blank" title="">剧照</a> | <a href="/wangp/25/${content.movieId}.html?showy=3" target="_blank"
                                        title="">预告片</a></p>
                        <p class="xxfilmRB">
                            ${content.MovieContent}...<a href="/wangp/25/${content.movieId}.html?showy=2"
                                target="_blank" title="">详情</a></p>
                        <p class="xxfilmRC">
                            观后感：</p>
                        #foreach($moviecontent in $pageSplit_BLL.GetTable("select top 1 a.*,b.CustomerName,b.CustomerLogo,b.CustomerNickName,c.movieName from movieComment a,customer b,movie c where a.CustomerId=b.CustomerId and a.MovieId=c.MovieId and c.movieId=$content.movieId order by CommentTime desc").Rows)
                        <a href='/UserCenter/${moviecontent.CustomerId}.html' target="_blank">
                            <img src="${moviecontent.CustomerLogo}" class="xxfilm_tx" /></a><p class="xxfilmRD">
                                <a href="/UserCenter/${moviecontent.CustomerId}.html" target="_blank">${moviecontent.CustomerNickName}</a>${moviecontent.commentTime.ToString("MM-dd")}</p>
                        <p class="xxfilmRE">
                            <a href='/Note_comment/note_Content.html?cid=${moviecontent.CommentId}' title='${moviecontent.CommentContent}' target="_blank">
                                ${moviecontent.CommentContent}</a></p>
                        #end
                    </div>
                    <img id="close_icon" onclick="javascript:$(this).parent().hide()" src="/images/close913.gif"
                        style="position: absolute; top: 11px; right: 12px; cursor: pointer;" />
                    <iframe frameborder="0" scrolling="no" style="width: 453px; height: 370px; position: absolute;
                        left: 0px; top: 0px; z-index: -1;"></iframe>
                </div>
            </div>
            <a href="/wangp/25/${content.movieId}.html" target="_blank" class="cinemaseat">
                <img title="在线购票" alt="在线购票" src="/images/btn_seat.jpg" /></a></dt><dd><h4>
                    <a href="/wangp/25/${content.movieId}.html" target="_blank" title="${content.movieName}"><em>片名：</em>${content.movieName}</a></h4>
                    <p>
                        导演：${content.Director}
                    </p>
                    <p class="daoyan">
                        <em>主演：</em>${content.ToStar}
                    </p>
                    <p>
                        类型：${content.MovieType}
                    </p>
                    <p>
                        片长：${content.Trailer}分钟</p>
                    <p class="jiage">
                        价格：<strong>${content.MoviePrice}</strong> 元起</p>
                </dd>
    </dl>

    #end

    <p class="m_lf">
        <a href="/movie/" target="_blank"><span>查看所有正在热映的&nbsp;</span><strong
            id="hotNum_sg">19</strong><span>&nbsp;部影片&gt;&gt;</span></a></p>
</div>
